package com.ny.service;

import com.ny.entity.Product;

import java.sql.SQLException;
import java.util.List;

public interface ProductService {
    List<Product> selectAllProduct() throws SQLException;

    Product getProductById(int productId) throws SQLException;
    int insertProduct(Product product) throws SQLException;
    int updateProduct(Product product) throws SQLException;
    int deleteProduct(int productId) throws SQLException;
}
